package ${package.Mapper};

import ${package.Entity}.${entity};
import ${superMapperClassPackage};
import ${package.ReqVoPackage}.*;
import ${package.RespVoPackage}.*;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {

<#if buildType == 'BILL' || buildType == 'NORMAL'>
    /**
     * 分页查询
     * @param page
     * @param queryObj
     * @return
     */
    IPage<${RespVo}> pageVo(Page page, @Param("queryObj") ${QueryVo} queryObj);

    /**
     * 查询全部
     * @param queryObj
     * @return
     */
    List<${RespVo}> listVo(@Param("queryObj") ${QueryVo} queryObj);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    ${RespVo} getVo(@Param("id") String id);

</#if>
<#if buildType == 'ITEM' >

    /**
    * 根据 ${foreignProperty} 查询 respVo
    *
    * @param ${foreignProperty}
    * @return
    */
    List<${billClass}RespVo.Inner${billClass}RespVoItem> listVoBy${firstLetterUpperForeignProperty}(@Param("${foreignProperty}") String ${foreignProperty});

</#if>


}
</#if>
